
import java.awt.Graphics;

public abstract class _DesigntElement extends _GraphicElement
{
  protected _PHY_Object Phy;

  public _DesigntElement(int x, int y)
  {
    this.Phy = new _PHY_Object(x, y);
  }

  public abstract void updatePosition();

  public _PHY_Object getPhy() {
    return this.Phy;
  }

  public double getX()
  {
    return this.Phy.getPosition().x;
  }

  public double getY()
  {
    return this.Phy.getPosition().y;
  }
  public abstract void mouseOn(Vec2 mousePos, boolean click);
  public abstract void paint(Graphics paramGraphics);
}